package guoanmaker.operator.business.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletResponse;

import org.springframework.data.domain.Page;

import guoanmaker.operator.business.model.OperatorContractDownloadCount;
import guoanmaker.operator.business.model.OperatorContractDownloadLog;
import guoanmaker.operator.business.model.OperatorContractType;
import guoanmaker.operator.business.modelnobind.OperatorContractBind;

/**
 * 
* @ClassName: OperatorContractServiceInterface 
* @Description: TODO(合同操作接口) 
* @author (ZhangXinYu)  
* @date 2017年12月17日 上午11:19:46 
* @version V1.0
 */
public interface OperatorContractServiceInterface {
	public Integer addContractType(String type,String guide);
	public List<OperatorContractType> contractTypes1(String guide);
	public List<OperatorContractType> contractTypes2(String name,String guide);
	public Map<String, Object> contractTypes3(Integer currentPage , Integer pageSize,String guide);
	public int contractTypeCount(String guide);
	public Integer editContractType(String id, String type);
	public Integer deleteContractType(String id);
	public Integer addContract(String name , String typeid , String fileUrl , String imgUrl,String guide);
	public Map<String, Object> findAllContract(String name , String typeid,Integer currentPage , Integer pageSize,String guide);
	public OperatorContractBind findContractById(String id);
	public Integer editContract(String id , String name , String typeid , String file , String img);
	public Integer removeContract(String id);
	public Integer addContractDemand(String type , String name , String email);
	public Integer removeContractDemand(String id);
	public Map<String, Object> findContractDemand(String name , String startDate , String endDate , Integer currentPage, Integer pageSize);
	public Integer sendMail(String userId, String address , String ids,String guide) throws Exception;
	public void downloadFile(String userId ,String id , HttpServletResponse response,String guide);
	public Map<String, Object> getAllContractDownloadCounts(String name,String typeId,Integer pageSize,Integer currentPage,String guide);
	public Page<OperatorContractDownloadLog> getAllContractDownloadLogs(String id,Integer pageSize,Integer currentPage,String guide);
}
